<?php
	$message_cont = empty($message_contents) ? NULL : $message_contents->content_text;
	$header_cont = empty($message_contents) ? NULL : $message_contents->header_text;
	$for_e_id = empty($for_e_id) ? NULL : $for_e_id->for_e_id;
?>
<div class="row">
	<div class="panel callout">
		<h6><?=$title;?></h6>
	</div>
	<p><?=$message;?></p>
	<fieldset>
		<?=$system_message;?>
		<legend><?=$title;?></legend>
		<p><?=$link.' | '.$site_link;?></p>
	</fieldset>
	<fieldset>
		<legend>Offline Message</legend>
		<form action="<?=$form_url;?>" method="POST">
			<div class="input-block">
				<label>Heading(optional):</label>
				<input type="text" name="<?=$header;?>" value="<?=$header_cont;?>">
			</div>
			<div class="input-block">
				<label>Content(Optional):</label>
				<textarea name="<?=$content;?>"><?=$message_cont;?></textarea>
			</div>
			<div class="input-block">
				<input type="submit" class="btn btn-primary" name="update_offline_contents" value="save">
			</div>
		</form>
	</fieldset>
	<!--
	<fieldset>
		<legend>Enrollment Studnet ID</legend>
		<form action="<?=$form_url;?>" method="POST">
			<div class="input-block">
				<label>Student ID:</label>
				<?='<br>'.form_error('student_id');?>
				<input type="text" name="student_id" value="<?=$for_e_id;?>">
			</div>
			<div class="input-block">
				<input type="submit" class="btn btn-primary" name="update_student_id" value="update">
			</div>
		</form>
	</fieldset>
	-->
</div>